package com.wlyuan.open.dto.api.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lijing
 * @description
 */
@Data
@RequiredArgsConstructor
public class OpenApiShippingAddressCreationDTO implements Serializable {
    private static final long serialVersionUID = -6391717748341755829L;

    @ApiModelProperty("发货方名称")
    private String customerName;

    @NotBlank(message = "省份不能为空")
    private String province;

    @NotBlank(message = "市不能为空")
    private String city;

    @NotBlank(message = "区不能为空")
    private String district;

    @Length(max = 100, message = "详细地址最多可输入100个字符")
    @ApiModelProperty(value = "详细地址")
    @NotBlank(message = "地址不能为空")
    private String address;

    @Length(max = 20, message = "联系人最多可输入20个字符")
    @NotBlank(message = "联系人不能为空")
    private String contactName;

    @Length(max = 50, message = "联系人手机最多可输入50个字符")
    @NotBlank(message = "联系人手机不能为空")
    private String contactMobile;

    @ApiModelProperty(value = "省编码", hidden = true)
    private String provinceCode;
    @ApiModelProperty(value = "市编码", hidden = true)
    private String cityCode;
    @ApiModelProperty(value = "区编码", hidden = true)
    private String districtCode;
    @ApiModelProperty(value = "发货方id", hidden = true)
    private Long customerId;
}
